package cn.huiyunche.admin.tms.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.huiyunche.base.service.enums.UserTypeEnum;
import cn.huiyunche.base.service.interfaces.CUserBankcardService;
import cn.huiyunche.base.service.vo.CUserAdminVoBankcard;
import cn.huiyunche.base.service.vo.PageVo;
import cn.huiyunche.base.service.vo.Result;

/**
 * 用户银行卡列表
 * @author lm
 *
 */
@Controller
@RequestMapping("/bank")
public class UserBankCardController {
	
	private static final Logger LOGGER = LoggerFactory.getLogger(UserBankCardController.class);
	
	@Autowired
	private CUserBankcardService cUserBackcardService = null;
	
	private CUserBankcardService getCUserBackcardService(){
		return this.cUserBackcardService;
	}
	
	@RequestMapping(value = "/list", method = RequestMethod.GET)
	@ResponseBody
	public Result<Object> getList(PageVo page){
		LOGGER.info("select user bank card list params page : {}.", page);
		Result<Object> result = new Result<Object>(true, null, "数据加载成功");
 		result.setData(this.getCUserBackcardService().getUserBackList(page));
		return result;
	}
	
/*	@RequestMapping(value = "/list", method = RequestMethod.GET)
	@ResponseBody
	public Result<Object> getList(PageVo page, CUserAdminVoBankcard bank){
		LOGGER.info("select user bank card list params page : {}.", page);
		Result<Object> result = new Result<Object>(true, null, "数据加载成功");
 		result.setData(this.getCUserBackcardService().getUserBackList(page, bank, UserTypeEnum.SEND_DRIVER.getValue()));
		return result;
	}
	*/
}
